<template>
  <div class="card bg-white mt-3 p-3">
    <div class="card-header flex">
      <i class="iconfont fs-xl" :class="`icon-${icon}`"></i>
      <strong class="flex-1 px-2 fs-xl">{{title}}</strong>
    </div>
    <div class="card-body mt-2">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: { type: String, required: true },
    icon: { type: String, required: true }
  }
};
</script>

<style lang="scss" scoped>
@import "../assets/style/_variables.scss";
.card {
  border-top: 1px solid map-get($colors, "border");
  border-bottom: 1px solid map-get($colors, "border");
}
</style>